import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import './plugins/iview.js'
import './plugins/luxon'
import store from './store'
import oauth from './plugins/oauth'
import collapsed from './plugins/collapsed'
import {mapGetters} from 'vuex';
import router from './router'
import ContentHead from './components/ContentHead';
import ButtonSwitch from './components/ButtonSwitch';

Vue.mixin({
    computed: mapGetters(['userInfo'])
});
Vue.config.productionTip = false;
Vue.component('ContentHead', ContentHead);
Vue.component('ButtonSwitch', ButtonSwitch);
store.registerModule('user', oauth);
Vue.use(collapsed, store);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
